(function(angular) {
	'use strict';
	angular.module("fs.waf").factory("processConfigService", processConfigService);
	processConfigService.$inject = [ '$q', 'loggerFactory', 'ajaxServiceFactory' ];
	function processConfigService($q, loggerFactory, ajaxServiceFactory) {
		var log = loggerFactory.getLogger("processConfigService"), ajaxService = ajaxServiceFactory.buildAjaxService({
			getBpmprocContextOptions : {
				url : 'do/cda/dataList/bpmprocContextOptions',
				method : 'post'
			}
		
		});
		function getBpmprocContextOptions(parm) {
			var defer = $q.defer();
			ajaxService.getBpmprocContextOptions(parm).then(function(response) {
				defer.resolve(response);
			});
			return defer.promise;
		}
		
		return {
			getBpmprocContextOptions : getBpmprocContextOptions
		};

	}
})(angular);